//
//  XRmenuBoxBase.h
//  XRmenu
//
//  Created by Gao Yan on 11-11-23.
//  Copyright 2011年 foxhis. All rights reserved.
//

#import "XRmenuBaseView.h"

@interface XRmenuBoxBase : XRmenuBaseView{
    
}
-(id) initWithBoxStyleName:(NSString*)stylename Frame:(CGRect)fr;
-(void) addTableViewWithStyleName:(NSString*)stylename Frame:(CGRect)fr;
-(void) drawiMenu2Box:(CGRect)fr Parm:(NSDictionary*)bdict;

#pragma mark 自动定位的
-(id) initWithAutoBox:(NSString*)boxstyle ParentFrame:(CGRect)pfr BoxSize:(CGSize)bsize NSPriority:(BOOL)isNS;
-(void) drawiMenu2BoxArrow:(CGRect)fr Parm:(NSDictionary*)bdict APosition:(NSInteger)ap; 
-(NSInteger) judgePosition:(CGRect)pfr BoxSize:(CGSize)bsize NSPriority:(BOOL)isNS;
-(CGRect) caculateBoxRect:(CGRect)pfr BSize:(CGSize)bsize APosition:(NSInteger)ap;

@end
